
export const formData = {
    getItemUrl: 'merchant/item/getItemById/',
    updateUrl: 'merchant/item/updateAction/',
    createUrl: 'merchant/item/createAction/',
    formKey: 'item',
    updateFieldList: [
        { formType: 'Input', showName: '名称', key: 'name', width: 5 },
        { formType: 'Switch', showName: '是否显示', key: 'isShow', width: 5 },
        { formType: 'Input', showName: '排序', key: 'sort', width: 5 },
        { formType: 'Option', showName: '状态', key: 'status', width: 5 },
    ],
    detailFieldList: [
        { formType: 'Input', showName: '名称', key: 'name', width: 5 },
        { formType: 'Input', showName: '实际销售价', key: 'suggestSellingPrice', width: 5 },
        { formType: 'Record', showName: '商品分类', key: 'cate', width: 5, relatedModel: 'cateModel', relatedKey: 'name' },
        { formType: 'Option', showName: '销售状态', key: 'status', width: 5 },
        { formType: 'Input', showName: '排序', key: 'sort', width: 5 },
        { formType: 'DatePicker', showName: '创建时间', key: 'createTime', width: 5, type: 'datetime', format: 'yyyy-MM-dd', valueFormat: 'yyyy-MM-dd' }
    ],
    options: {
        status: [
            {value: '1', label: "正常"},
            {value: '0', label: "下架"}
        ],
        isShow: [
            {value: 1, label: "是"},
            {value: 0, label: "否"}
        ]
    },
    dicts: {
        status: {
            '1': "正常",
            '0': "下架"
        }
    }
}
